home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS04.ADF / image.ed / imagetools.c < prev    next >
C/C++ Source or Header  |  1985-10-26  |  867b  |  29 lines

  1.  
  2.  
  3. /************* image.tools.c ************/
  4. /* this file contains some tools used by the image.editor */
  5.  
  6. #include "intuall.h"
  7. extern struct IntuiMessage *message;
  8. extern struct Window *w;
  9. extern USHORT class;
  10. extern USHORT code;
  11. extern USHORT qualifier;
  12. extern APTR address;
  13. extern APTR oldaddress;
  14.  
  15. waiting_for_different_gadget()
  16. {
  17.         message = (struct IntuiMessage *)GetMsg(w->UserPort);
  18.         if (message == NULL) return(TRUE);      /* yes, still waiting for
  19.                                                  * a mouse-up event */
  20.         class = message->Class;
  21.         code = message->Code;
  22.         qualifier = message->Qualifier;
  23.         address = message->IAddress;
  24.         ReplyMsg(message);
  25.  
  26.         if (class == GADGETUP)  return(FALSE);   /* not waiting any more */
  27.         else                    return(TRUE);   /* yes, we are still waiting */
  28. }
  29.